package com.sky.dto;

import com.sky.entity.DishFlavor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel(description = "菜品信息")
public class DishDTO implements Serializable {

    @ApiModelProperty(value = "菜品主键（更新操作必填）")
    private Long id;

    @ApiModelProperty(value = "菜品名称", required = true, example = "鱼香肉丝")
    private String name;

    @ApiModelProperty(value = "菜品分类id", required = true, example = "1")
    private Long categoryId;

    @ApiModelProperty(value = "菜品价格", required = true, example = "100")
    private BigDecimal price;

    @ApiModelProperty(value = "菜品图片", required = true)
    private String image;

    @ApiModelProperty(value = "菜品描述")
    private String description;

    @ApiModelProperty(value = "菜品状态（0 停售 1 起售）", required = true, example = "0")
    private Integer status;

    @ApiModelProperty(value = "口味做法配置")
    private List<DishFlavor> flavors = new ArrayList<>();

}
